#include "RenderSoil.h"

RenderSoil::RenderSoil()
{
    _old_pos_x = 650;
    _old_pos_y = 250;

    al_draw_filled_rectangle(150, 400, 450, 450, al_map_rgb(0,0,0));
    //al_draw_filled_rectangle(1000, 100, 1150, 150, al_map_rgb(0,0,0));
    al_draw_filled_rectangle(850, 300, 900, 550, al_map_rgb(0,0,0));
    //al_draw_filled_rectangle(200, 100, 250, 250, al_map_rgb(0,0,0));

}

void RenderSoil::updateSoil(Man *DigDug)
{
        al_draw_filled_rectangle(_old_pos_x, _old_pos_y, _old_pos_x+50, _old_pos_y+50, al_map_rgb(0,0,0));

        _old_pos_x = DigDug->get_pos_x();
        _old_pos_y = DigDug->get_pos_y() - 100;
}


